import requests
from bs4 import BeautifulSoup
#伪造ua
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
}
url = 'http://data.sports.sohu.com/nba/nba_players_rank.php'
response = requests.get(url=url,headers=headers)
response.encoding = "utf-8"
soup = BeautifulSoup(response.text,"lxml")
playerTr = soup.select('.table01>tr')
print(playerTr)